<?php 

$this->headScript()
		->appendFile($this->baseUrl()."/js/jquery/development-bundle/ui/jquery.ui.core.js")
		->appendFile($this->baseUrl()."/js/jquery/development-bundle/ui/jquery.ui.widget.js")
		->appendFile($this->baseUrl()."/js/jquery/development-bundle/ui/jquery.ui.button.js");
$this->headLink()->appendStylesheet($this->baseUrl(). '/js/jquery/development-bundle/themes/ui-lightness/jquery.ui.all.css');
$this->headTitle('Agregar fabricantes');
?>
<p class="errorText">&nbsp;<?php echo $this->messageError; ?></p>
<div class="section">
<div class="section_inner">
<div class="title_wrapper">
	<h2>Agregar Fabricantes</h2>

</div>
<div class="section_content">


<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
<!-- body_text //-->
    <td width="100%" valign="top">
    <table border="0" width="100%" cellspacing="0" cellpadding="0">

      <tr>
        <td>
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top">
			<table border="0" width="100%" cellspacing="0" cellpadding="2">
			  <tr class="infoBoxHeading">
			    <td class="infoBoxHeading"><b>Fabricante</b></td>
			
			  </tr>
			</table>
			<form action="<?php echo $this->escape($this->form->getAction()); ?>"  method="<?php echo $this->escape($this->form->getMethod()); ?>" id="<?php echo $this->escape($this->form->getName()); ?>" name="<?php echo $this->escape($this->form->getName()); ?>"  enctype="<?php echo $this->escape($this->form->getEnctype()); ?>">
			
			<input type="hidden" name="id" value="<?php echo $this->Data['Id'];?>" />
			<table border="0" width="100%" cellspacing="0" cellpadding="1">
			  <tr>
			    <td class="infoBoxContent">Por favor, complete la siguiente información para el nuevo fabricante</td>
			  </tr>
			  <tr>
			    <td class="infoBoxContent">
			    	<br />Nombre del fabricante:<br />&nbsp;
			    	<input type="text" name="manufacturer_name" size = "33" maxlength = "32" value="<?php echo $this->Data['Manufacturer'];?>" />
			    </td>
			  </tr>
			  <tr>
			  	<td class="infoBoxContent">
			  		<br>URL del fabricante:<br />
			  		&nbsp;<input name="manufacturer_url" size="51" maxlength="255" type="text" value="<?php echo $this->Data['Url'];?>"><br />
			  		
			  	</td>
			  </tr>
			  <tr>
			    <td class="infoBoxContent"><br />Imagen de categoría:
				<?php if(isset($this->Data['Thumb']) && $this->Data['Thumb'] != "") { ?>
                			<img src="<?php echo $this->baseUrl(); ?>/images/files/manufacturer/Thumb/<?php echo $this->Data['Thumb'];?>" />	
				<?php } ?>
			    	<?php echo $this->form->manufacturer_image;?>	
				</td>
			  </tr>
			  
			  <tr>			
			    <td align="center" class="infoBoxContent">
			    	<br />
			    	<input type="submit" name="guardar"  value="Guardar cambios" class="buttonyui" />
			    	<a href="<?php echo $this->baseUrl();?>/admin/manufacturers/" class="buttonyui" >
			    		Cancelar
			    	</a>
			    	</td>
			  </tr>
			</table>
			</form>
            </td>

          </tr>
        </table></td>
      </tr>
    </table>
    </td>
<!-- body_text_eof //-->
  </tr>
</table>
</div></div></div>

<script type="text/javascript">
$(document).ready(function(){
	$( ".buttonyui").button();
});
</script>

